package com.zsk.util;

public class MvnPrjUtil {

	public final static String workingDir = "workspace";

	public static String getClassName(String tableName) {
		String first = tableName.substring(0, 1);
		String after = tableName.substring(1);
		first = first.toUpperCase();
		return first + after;
	}

	public static String getCodeDir(String artifactId, String packageName) {
		return artifactId + "/src/main/java/" + packageName.replaceAll("\\.", "/") + "/";
	}

	public static String getResDir(String artifactId) {
		return artifactId + "/src/main/resources/";
	}

	public static String getWorkCodeDir(String artifactId, String packageName) {
		return workingDir + "/" + getCodeDir(artifactId, packageName);
	}

	public static String getWorkResDir(String artifactId, String packageName) {
		return workingDir + "/" + getResDir(artifactId);
	}
}
